package com.wyj.utils

import android.os.Build

object SdkVersionUtils {
    @JvmStatic
    val isAndroid12: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.S }

    @JvmStatic
    val isAndroid11: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.R }

    @JvmStatic
    val isAndroid10: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q }

    @JvmStatic
    val isAndroid9: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.P }

    @JvmStatic
    val isAndroid8: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.O }

    @JvmStatic
    val isAndroid7: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.N }

    @JvmStatic
    val isAndroid6: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.M }

    @JvmStatic
    val isAndroid5: Boolean by lazy { Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP }

}